<!--
 * @Description: 活动数据大盘
 * @Author: liyujie
 * @Date: 2021/2/4
 * @Last Modified by: liyujie
 * @Last Modified time: 2021/2/4
-->
<template>
    <div class="container">
        <!-- 邀请有礼大盘 -->
        <shopHead
            id="invite_polite"
            :title="active.invite_polite"
            v-if="authResult.auth_invite_polite_user || authResult.auth_invite_polite_money"
        />
        <div class="student">
            <!-- 数据展示 -->
            <div
                class="student-home"
                v-if="authResult.auth_invite_polite_user"
            >
                <div class="main-content">
                    <p class="main-content-title">用户数据</p>
                    <div class="main-content-right">
                        <el-date-picker
                            v-model="invite_polite_time"
                            type="datetimerange"
                            range-separator="至"
                            start-placeholder="开始日期"
                            end-placeholder="结束日期"
                            :default-time="['00:00:00', '23:59:59']"
                            size="small"
                            value-format="timestamp"
                            @change="getInvitePoliteDataUser"
                        />
                    </div>
                </div>
                <div class="main-seat" />
                <div class="zd-data">
                    <div class="zd-list">
                        <div class="zd-head">
                            <p class="zd-head-title">注册人数</p>
                            <!--<el-popover
                                placement="top-start"
                                width="200"
                                trigger="hover"
                                content="指去掉掌上大学用户之外的独立访问数">
                                <el-button slot="reference">
                                    <i class="el-icon-hand-tishi iconfont" />
                                </el-button>
                            </el-popover>-->
                        </div>
                        <div class="zd-content">{{ invite_polite_data_user.invite_user_count }}</div>
                    </div>
                    <div class="zd-list">
                        <div class="zd-head">
                            <p class="zd-head-title">首购人数</p>
                        </div>
                        <div class="zd-content">{{ invite_polite_data_user.pay_user_count }}</div>
                    </div>
                    <div class="zd-list">
                        <div class="zd-head">
                            <p class="zd-head-title">实付满1元人数</p>
                        </div>
                        <div class="zd-content">{{ invite_polite_data_user.pay_complete_user_count }}</div>
                    </div>
                    <div class="zd-list">
                        <div class="zd-head">
                            <p class="zd-head-title">提现人数</p>
                        </div>
                        <div class="zd-content">{{ invite_polite_data_user.withdraw_user_count }}</div>
                    </div>
                </div>
            </div>
            <div
                class="student-home"
                v-if="authResult.auth_invite_polite_money"
            >
                <div class="main-content">
                    <p class="main-content-title">邀请数据</p>
                </div>
                <div class="main-seat" />
                <div class="zd-data">
                    <div class="zd-list">
                        <div class="zd-head">
                            <p class="zd-head-title">入账金额</p>
                            <!--<el-popover
                                placement="top-start"
                                width="200"
                                trigger="hover"
                                content="指去掉掌上大学用户之外的独立访问数">
                                <el-button slot="reference">
                                    <i class="el-icon-hand-tishi iconfont" />
                                </el-button>
                            </el-popover>-->
                        </div>
                        <div class="zd-content">{{ invite_polite_data_money.award_money_total }}</div>
                    </div>
                    <div class="zd-list">
                        <div class="zd-head">
                            <p class="zd-head-title">入账不可提现金额</p>
                        </div>
                        <div class="zd-content">{{ invite_polite_data_money.award_money_cannot_withdraw }}</div>
                    </div>
                    <div class="zd-list">
                        <div class="zd-head">
                            <p class="zd-head-title">入账待提现金额</p>
                        </div>
                        <div class="zd-content">{{ invite_polite_data_money.award_money_can_withdraw }}</div>
                    </div>
                    <div class="zd-list">
                        <div class="zd-head">
                            <p class="zd-head-title">入账已提现金额</p>
                        </div>
                        <div class="zd-content">{{ invite_polite_data_money.award_money_has_withdraw }}</div>
                    </div>
                    <div class="zd-list">
                        <div class="zd-head">
                            <p class="zd-head-title">次日入账金额</p>
                        </div>
                        <div class="zd-content">{{ invite_polite_data_money.award_money_tomorrow }}</div>
                    </div>
                </div>
            </div>
        </div>
        <!-- 邀请助力数据 -->
        <shopHead
            id="invite_help"
            :title="active.invite_help"
            v-if="authResult.auth_invite_help || authResult.auth_invite_help_user"
        />
        <div class="student">
            <!-- 数据展示 -->
            <div
                class="student-home"
                v-if="authResult.auth_invite_help"
            >
                <div class="main-content">
                    <p class="main-content-title">助力数据</p>
                    <div class="main-content-right">
                        <el-date-picker
                            v-model="invite_help_time"
                            type="datetimerange"
                            range-separator="至"
                            start-placeholder="开始日期"
                            end-placeholder="结束日期"
                            :default-time="['00:00:00', '23:59:59']"
                            size="small"
                            value-format="timestamp"
                            @change="getInviteHelpData"
                        />
                    </div>
                </div>
                <div class="main-seat" />
                <div class="zd-data">
                    <div class="zd-list">
                        <div class="zd-head">
                            <p class="zd-head-title">用户发起助力次数</p>
                        </div>
                        <div class="zd-content">{{ invite_help_data.help_shopping_apply_count }}</div>
                    </div>
                    <div class="zd-list">
                        <div class="zd-head">
                            <p class="zd-head-title">用户助力成功次数</p>
                        </div>
                        <div class="zd-content">{{ invite_help_data.help_shopping_success_count }}</div>
                    </div>
                    <div class="zd-list">
                        <div class="zd-head">
                            <p class="zd-head-title">发起助力的总次数</p>
                        </div>
                        <div class="zd-content">
                            <div class="zd-content">{{ invite_help_data.help_shopping_apply_count_total }}</div>
                        </div>
                    </div>
                    <div class="zd-list">
                        <div class="zd-head">
                            <p class="zd-head-title">助力成功的总次数</p>
                        </div>
                        <div class="zd-content">
                            <div class="zd-content">{{ invite_help_data.help_shopping_success_count_total }}</div>
                        </div>
                    </div>
                </div>
            </div>
            <div
                class="student-home"
                v-if="authResult.auth_invite_help_user"
            >
                <div class="main-content">
                    <p class="main-content-title">用户数据</p>
                    <div class="main-content-right">
                        <el-date-picker
                            v-model="invite_help_time_user"
                            type="datetimerange"
                            range-separator="至"
                            start-placeholder="开始日期"
                            end-placeholder="结束日期"
                            :default-time="['00:00:00', '23:59:59']"
                            size="small"
                            value-format="timestamp"
                            @change="getInviteHelpDataUser"
                        />
                    </div>
                </div>
                <div class="main-seat" />
                <div class="zd-data">
                    <div class="zd-list">
                        <div class="zd-head">
                            <p class="zd-head-title">参与活动的用户数</p>
                            <!--<el-popover
                                placement="top-start"
                                width="200"
                                trigger="hover"
                                content="指去掉掌上大学用户之外的独立访问数">
                                <el-button slot="reference">
                                    <i class="el-icon-hand-tishi iconfont" />
                                </el-button>
                            </el-popover>-->
                        </div>
                        <div class="zd-content">{{ invite_help_data_user.total_user_count }}</div>
                    </div>
                    <div class="zd-list">
                        <div class="zd-head">
                            <p class="zd-head-title">正在助力的用户数</p>
                        </div>
                        <div class="zd-content">{{ invite_help_data_user.help_shopping_ing_user_count }}</div>
                    </div>
                    <div class="zd-list">
                        <div class="zd-head">
                            <p class="zd-head-title">发起助力的用户数</p>
                        </div>
                        <div class="zd-content">{{ invite_help_data_user.help_shopping_apply_user_count }}</div>
                    </div>
                    <div class="zd-list">
                        <div class="zd-head">
                            <p class="zd-head-title">助力成功的用户数</p>
                        </div>
                        <div class="zd-content">{{ invite_help_data_user.help_shopping_success_user_count }}</div>
                    </div>
                    <div class="zd-list">
                        <div class="zd-head">
                            <p class="zd-head-title">邀请助力注册的新用户数</p>
                        </div>
                        <div class="zd-content">{{ invite_help_data_user.reg_user_count }}</div>
                    </div>
                    <div class="zd-list">
                        <div class="zd-head">
                            <p class="zd-head-title">邀请助力注册的总新用户数</p>
                        </div>
                        <div class="zd-content">{{ invite_help_data_user.reg_user_count_total }}</div>
                    </div>
                </div>
            </div>
        </div>

        <!-- 砍价活动数据 -->
        <shopHead
            id="bargain_activity"
            :title="active.bargain_activity"
            v-if="authResult.auth_bargain_activity || authResult.auth_bargain_activity_goods"
        />
        <div class="student">
            <!-- 数据展示 -->
            <div
                class="student-home"
                v-if="authResult.auth_bargain_activity"
            >
                <div class="main-content">
                    <p class="main-content-title">活动大盘</p>
                    <div class="main-content-right">
                        <el-date-picker
                            v-model="bargain.activity_time"
                            type="datetimerange"
                            range-separator="至"
                            start-placeholder="开始日期"
                            end-placeholder="结束日期"
                            :default-time="['00:00:00', '23:59:59']"
                            size="small"
                            value-format="timestamp"
                            @change="getBargainActivityData"
                        />
                    </div>
                </div>
                <div class="main-seat" />
                <div class="zd-data">
                    <div class="zd-list">
                        <div class="zd-head">
                            <p class="zd-head-title">发起砍价的人数</p>
                        </div>
                        <div class="zd-content">{{ bargain.activity_data.apply_user_count }}</div>
                    </div>
                    <div class="zd-list">
                        <div class="zd-head">
                            <p class="zd-head-title">砍价成功的人数</p>
                        </div>
                        <div class="zd-content">{{ bargain.activity_data.success_user_count }}</div>
                    </div>
                    <div class="zd-list">
                        <div class="zd-head">
                            <p class="zd-head-title">发起砍价的次数</p>
                        </div>
                        <div class="zd-content">
                            <div class="zd-content">{{ bargain.activity_data.apply_count }}</div>
                        </div>
                    </div>
                    <div class="zd-list">
                        <div class="zd-head">
                            <p class="zd-head-title">砍价成功的次数</p>
                        </div>
                        <div class="zd-content">
                            <div class="zd-content">{{ bargain.activity_data.success_count }}</div>
                        </div>
                    </div>
                    <div class="zd-list">
                        <div class="zd-head">
                            <p class="zd-head-title">受邀的老用户数</p>
                        </div>
                        <div class="zd-content">
                            <div class="zd-content">{{ bargain.activity_data.old_user_help_count }}</div>
                        </div>
                    </div>
                    <div class="zd-list">
                        <div class="zd-head">
                            <p class="zd-head-title">受邀的新用户数</p>
                        </div>
                        <div class="zd-content">
                            <div class="zd-content">{{ bargain.activity_data.new_user_help_count }}</div>
                        </div>
                    </div>
                    <div class="zd-list">
                        <div class="zd-head">
                            <p class="zd-head-title">首购人数</p>
                        </div>
                        <div class="zd-content">
                            <div class="zd-content">{{ bargain.activity_data.first_user_count }}</div>
                        </div>
                    </div>
                    <div class="zd-list">
                        <div class="zd-head">
                            <p class="zd-head-title">额外奖励人数（翻倍奖励）</p>
                        </div>
                        <div class="zd-content">
                            <div class="zd-content">{{ bargain.activity_data.other_user_count }}</div>
                        </div>
                    </div>
                </div>
            </div>
            <div
                class="student-home"
                v-if="authResult.auth_bargain_activity_goods"
            >
                <div class="main-content">
                    <p class="main-content-title">商品大盘</p>
                    <div class="main-content-right">
                        <el-input
                            class="input-with-select"
                            placeholder="编号搜索"
                            v-model="bargain.aim_no"
                            clearable
                            size="small"
                            style="margin-right: 12px;width: 240px"
                            @keydown.enter.native="getBargainActivityGoodsData(1)"
                        />
                        <el-date-picker
                            v-model="bargain.activity_goods_time"
                            type="datetimerange"
                            range-separator="至"
                            start-placeholder="开始日期"
                            end-placeholder="结束日期"
                            :default-time="['00:00:00', '23:59:59']"
                            size="small"
                            value-format="timestamp"
                            @change="getBargainActivityGoodsData(1)"
                        />
                    </div>
                </div>
                <div class="main-seat" />
                <div
                    class="zd-data"
                    style="flex-direction: column;height: 500px"
                >
                    <el-table
                        :data="bargain.activity_goods_data"
                        height="400px"
                        ref="table"
                        class="data-table"
                        v-loading="bargain.tableLoading"
                    >
                        <el-table-column
                            label="序号"
                            align="center"
                            width="50"
                            type="index"
                        />
                        <el-table-column
                            prop="aim_no"
                            align="center"
                            label="商品/优惠券/红包编号"
                            show-overflow-tooltip
                            :formatter="emptyFormatter"
                            width="120"
                        />
                        <el-table-column
                            label="商品缩略图/红包描述"
                            show-overflow-tooltip
                            :formatter="emptyFormatter"
                            width="150"
                        >
                            <template slot-scope="scope">
                                <div v-if="scope.row.aim_type === 'goods'">
                                    <img
                                        :src="scope.row.goods_cover"
                                        style="width: 60px"
                                    >
                                </div>
                                <div v-if="scope.row.aim_type === 'platform_coupon' || scope.row.aim_type === 'merchant_coupon'">
                                    {{ scope.row.coupon_desc }}
                                </div>
                                <div v-if="scope.row.aim_type === 'red_packet'">
                                    {{ scope.row.red_packet_desc }}
                                </div>
                            </template>
                        </el-table-column>
                        <el-table-column
                            label="类型"
                            show-overflow-tooltip
                            :formatter="emptyFormatter"
                        >
                            <template slot-scope="scope">
                                <div v-if="scope.row.aim_type === 'goods'">商品</div>
                                <div v-if="scope.row.aim_type === 'platform_coupon'">平台优惠券</div>
                                <div v-if="scope.row.aim_type === 'merchant_coupon'">商家优惠券</div>
                                <div v-if="scope.row.aim_type === 'red_packet'">平台红包</div>
                            </template>
                        </el-table-column>
                        <el-table-column
                            label="原价格"
                            align="center"
                            show-overflow-tooltip
                            :formatter="emptyFormatter"
                        >
                            <template slot-scope="scope">
                                <div v-if="scope.row.aim_type === 'goods'">{{ scope.row.goods_price }}</div>
                                <div v-else>--</div>
                            </template>
                        </el-table-column>
                        <el-table-column
                            label="活动价"
                            show-overflow-tooltip
                            :formatter="emptyFormatter"
                            align="center"
                        >
                            <template slot-scope="scope">
                                <div v-if="scope.row.aim_type === 'goods'">{{ scope.row.price }}</div>
                                <div v-else>--</div>
                            </template>
                        </el-table-column>
                        <el-table-column
                            prop="stock"
                            label="库存"
                            show-overflow-tooltip
                            :formatter="emptyFormatter"
                            align="center"
                        />
                        <el-table-column
                            prop="apply_user_count"
                            label="发起砍价的人数"
                            show-overflow-tooltip
                            :width="120"
                            align="center"
                        />
                        <el-table-column
                            prop="success_user_count"
                            label="砍价成功的人数"
                            show-overflow-tooltip
                            :width="120"
                            align="center"
                        />
                        <el-table-column
                            prop="apply_count"
                            label="发起砍价的次数"
                            show-overflow-tooltip
                            :width="120"
                            align="center"
                        />
                        <el-table-column
                            prop="success_count"
                            label="砍价成功的次数"
                            show-overflow-tooltip
                            :width="120"
                            align="center"
                        />
                        <el-table-column
                            prop="old_user_help_count"
                            label="参与老用户数"
                            show-overflow-tooltip
                            :width="120"
                            align="center"
                        />
                        <el-table-column
                            prop="new_user_help_count"
                            label="参与新用户数"
                            show-overflow-tooltip
                            :width="120"
                            align="center"
                        />
                        <el-table-column
                            prop="first_buy_percent"
                            label="首购率"
                            show-overflow-tooltip
                            align="center"
                        />
                        <el-table-column
                            prop="receive_percent"
                            label="领取率"
                            show-overflow-tooltip
                            align="center"
                        />
                        <el-table-column
                            prop="use_percent"
                            label="使用率"
                            show-overflow-tooltip
                            align="center"
                        />
                    </el-table>
                    <!-- /分页 -->
                    <div class="pagination-wrapper clearfix">
                        <el-pagination
                            layout="total, prev, pager, next, jumper"
                            background
                            :current-page.sync="bargain.page.now_page"
                            :total="bargain.page.total_count"
                            :page-size="bargain.page.page_size"
                            @current-change="getBargainActivityGoodsData"
                        />
                    </div>
                </div>
            </div>
        </div>
    </div>
</template>

<script>
import { back } from '@/mixin/back';
import shopHead from '@/components/shop-head';
import zdTree from '@/components/social-data/zd-tree';
import zdAddTree from '@/components/social-data/zd-tree-add';
import { getDate } from '@/assets/js/utils';
export default {
    mixins: [back],
    components: {
        shopHead,
        zdTree,
        zdAddTree
    },
    data () {
        return {
            active: {
                invite_polite: '邀请有礼数据大盘',
                invite_help: '邀请助力数据大盘',
                bargain_activity: '砍价活动数据大盘'
            },
            // 邀请有礼时间筛选
            invite_polite_time: this.getDefaultDate(),
            // 邀请助力时间筛选
            invite_help_time: this.getDefaultDate(),
            // 邀请助力用户数据筛选
            invite_help_time_user: this.getDefaultDate(),
            // 砍价活动相关数据
            bargain: {
                activity_time: this.getDefaultDate(),
                activity_goods_time: this.getDefaultDate(),
                aim_no: '',
                activity_data: {},
                activity_goods_data: [],
                tableLoading: false,
                page: {
                    now_page: 1,
                    total_count: 0,
                    page_size: 20
                }
            },
            // 邀请有礼数据
            invite_polite_data_user: {},
            invite_polite_data_money: {},
            // 邀请助力数据
            invite_help_data: {},
            // 邀请助力数据
            invite_help_data_user: {},
            //权限
            authResult: {},
        };
    },
    watch: {},
    mounted () {
        this.$store.commit('SET_HEADER', [{ title: "APP后台"},{title: '活动数据大盘'}]);
        this.authResult = this.$route.meta.authResult;
        this.getInvitePoliteDataUser();
        this.getInvitePoliteDataMoney();
        this.getInviteHelpData();
        this.getInviteHelpDataUser();
        this.getBargainActivityData();
        this.getBargainActivityGoodsData();
    },
    methods: {
        /**
         * @description 过滤函数
         */
        emptyFormatter(row, column, val) {
            if (!val) return '--';
            return val;
        },

        /**
         * 获取默认日期
         */
        getDefaultDate() {
            return [this.$moment().startOf('day').format('x'),this.$moment().add(1, 'day').startOf('day').format('x')];
        },

        /**
         * 获取邀请有礼用户数据
         */
        getInvitePoliteDataUser () {
            let start_time = this.invite_polite_time ? this.invite_polite_time[0] / 1000 : '';
            let end_time = this.invite_polite_time ? this.invite_polite_time[1] / 1000 : '';
            let params = {start_time, end_time};

            this.$post('/student/statistic_student%5Cget_invite_award_user_statistic', params, resp => {
                if (resp.code === 1) {
                    this.invite_polite_data_user = {
                        ...resp.data
                    };
                } else {
                    this.$message({
                        type: 'waring',
                        message: resp.msg,
                        center: true
                    });
                }
            });
        },

        /**
         * 获取邀请统计数据
         */
        getInvitePoliteDataMoney () {
            this.$post('/student/statistic_student%5Cget_invite_award_invite_statistic', {}, resp => {
                if (resp.code === 1) {
                    this.invite_polite_data_money = {
                        ...resp.data
                    };
                } else {
                    this.$message({
                        type: 'waring',
                        message: resp.msg,
                        center: true
                    });
                }
            });
        },

        /**
         * 获取邀请助力数据
         */
        getInviteHelpData () {
            let start_time = this.invite_help_time ? this.invite_help_time[0] / 1000 : '';
            let end_time = this.invite_help_time ? this.invite_help_time[1] / 1000 : '';
            let params = {start_time, end_time};

            this.$post('/student/statistic_shop%5Cget_help_shopping_statistic', params, resp => {
                if (resp.code === 1) {
                    this.invite_help_data = {
                        ...resp.data
                    };
                } else {
                    this.$message({
                        type: 'waring',
                        message: resp.msg,
                        center: true
                    });
                }
            });
        },

        /**
         * 获取邀请助力用户数据
         */
        getInviteHelpDataUser () {
            let start_time = this.invite_help_time_user ? this.invite_help_time_user[0] / 1000 : '';
            let end_time = this.invite_help_time_user ? this.invite_help_time_user[1] / 1000 : '';
            let params = {start_time, end_time};

            this.$post('/student/statistic_shop%5Cget_help_shopping_user_statistic', params, resp => {
                if (resp.code === 1) {
                    this.invite_help_data_user = {
                        ...resp.data
                    };
                } else {
                    this.$message({
                        type: 'waring',
                        message: resp.msg,
                        center: true
                    });
                }
            });
        },

        /**
         * 获取砍价活动数据
         */
        getBargainActivityData () {
            let start_time = this.bargain.activity_time ? this.bargain.activity_time[0] / 1000 : '';
            let end_time = this.bargain.activity_time ? this.bargain.activity_time[1] / 1000 : '';
            let params = {start_time, end_time};

            this.$post('/student/statistic_shop%5Cget_tool_bargain_activity_statistic', params, resp => {
                if (resp.code === 1) {
                    this.bargain.activity_data = {
                        ...resp.data
                    };
                } else {
                    this.$notify({
                        type: 'waring',
                        message: resp.msg,
                        title: '提示'
                    });
                }
            });
        },

        /**
         * 获取砍价活动商品数据
         */
        getBargainActivityGoodsData (page) {
            this.bargain.tableLoading = true;
            let start_time = this.bargain.activity_goods_time ? this.bargain.activity_goods_time[0] / 1000 : '';
            let end_time = this.bargain.activity_goods_time ? this.bargain.activity_goods_time[1] / 1000 : '';
            let params = {start_time, end_time, aim_no: this.bargain.aim_no};

            params.page_id = page || this.bargain.page.now_page;
            this.$post('/student/statistic_shop%5Cget_tool_bargain_list_statistic', params, resp => {
                if (resp.code === 1) {
                    this.bargain.activity_goods_data = resp.data.list;
                    this.bargain.page = resp.data.page;
                } else {
                    this.$notify({
                        type: 'waring',
                        message: resp.msg,
                        title: '提示'
                    });
                }
                this.bargain.tableLoading = false;
            });
        },
    }
};
</script>

<style lang="less" scoped>
    .container {
        background-color: #F4F4F4;
        padding: 0 15px 5px 15px;
        display: flex;
        flex-direction: column;
        position: relative;
        width: 100%;
        height: 100%;
        /* 字体高亮 */
        .cursor-font {
            color: rgb(64, 158, 255);
            cursor: pointer;
        }
        /* 分页 */
        .pagination-wrapper {
            width: 100%;
            padding-top: 20px;
            .el-pagination {
                float: right;
                padding: 0;
                background-color: transparent;
            }
        }
    }
    /* 学习首页指标 */
    .student {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        height: auto;
    }
    .student-home {
        width: 100%;
        display: flex;
        flex-direction: column;
        background: #ffffff;
        padding: 12px 15px 30px 15px;
        margin-bottom: 10px;
        .student-content {
            width: 100%;
            display: flex;
            background: #F4F4F4;
            .zd-student-tree {
                background: #ffffff;
                width: calc(100% / 2 + 100px);
                padding: 12px 15px 15px 15px;
            }
            .zd-student-tree:nth-child(2) {
                width: calc(100% / 2  - 100px);
                margin-left: 10px;
            }
        }
        .main-content {
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 9px;
            &-title {
                color: #000000;
                font-size: 14px;
            }
            &-right {
                display: flex;
                align-items: center;
                color: #3F454B;
            }
        }
        .main-seat {
            width: 100%;
            height: 1px;
            background: #F4F4F4;
            margin-bottom: 35px;
        }
    }
    .main {
        width: 100%;
        display: flex;
    }
    .main-flow {
        width: calc(100% / 2);
        padding: 12px 15px 25px 15px;
        box-sizing: border-box;
        background: #ffffff;
        .main-content {
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 9px;
            &-title {
                color: #000000;
                font-size: 14px;
            }
        }
        .main-seat {
            width: 100%;
            height: 1px;
            background: #F4F4F4;
            margin-bottom: 15px;
        }
    }
    .main-flow-banner {
        width: 100%;
    }
    .main-funnel {
        width: calc((100% - 10px) / 2);
        padding: 12px 15px 30px 15px;
        box-sizing: border-box;
        background: #ffffff;
        margin-left: 10px;
        .main-content {
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 9px;
            &-title {
                color: #000000;
                font-size: 14px;
            }
        }
        .main-seat {
            width: 100%;
            height: 1px;
            background: #F4F4F4;
            margin-bottom: 30px;
        }
        .main-funnel-cont {
            padding: 30px 100px 30px 101px;
            display: flex;
            height: 132px;
            align-items: center;
            justify-content: center;
            .main-cont-list {
                display: flex;
                flex-direction: column;
                align-items: center;
                position: relative;
                .el-button-hover {
                    background: transparent;
                    border: none;
                    position: absolute;
                    top: -10px;
                    left: 65px;
                }
                .main-list-title {
                    color: #000000;
                    font-size: 14px;
                    height: 22px;
                    line-height: 22px;
                    margin-bottom: 10px;
                    white-space: nowrap;
                }
                .main-list-cont {
                    width: 80px;
                    height: 80px;
                    border-radius: 50%;
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    background: #81DFEA;
                    .main-list-ratio {
                        height: 40px;
                        line-height: 40px;
                        color: #ffffff;
                        font-size: 21px;
                        margin-top: 18px;
                        font-weight: 500;
                    }
                    .main-list-number {
                        height: 22px;
                        line-height: 22px;
                        color: #ffffff;
                        font-size: 14px;
                    }
                }
                .mail {
                    background: #EAAC50;
                }
                .blue {
                    background: #81A8EA;
                }
                .green {
                    background: #64B76D;
                }
                .orig {
                    background: #EAAC50;
                }
                .red {
                    background: #FF7470;
                }
            }
            .main-cont-arrow {
                display: flex;
                height: 100%;
                width: 35px;
                justify-content: center;
                .main-arrow-list {
                    display: flex;
                    height: 13px;
                    align-items: center;
                    margin: 48px 6px 0 8px;
                    .main-arrow-line {
                        width: 20px;
                        height: 1px;
                        background: #D8D8D8;
                    }
                    .main-arrow-delta {
                        width: 0px;
                        height: 0px;
                        border-width: 5px;
                        border-style: solid;
                        border-color: transparent transparent transparent #D8D8D8;
                    }
                }
            }
        }
    }
    .funnel-content {
        width: 100%;
    }
    /* 数据展示 */
    .zd-data {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        background: #ffffff;
        .zd-list {
            width: calc(100% / 5);
            display: flex;
            flex-direction: column;
            align-items: center;
            .zd-head {
                height: 20px;
                display: flex;
                align-items: center;
                cursor: pointer;
                .zd-head-title {
                    font-size: 14px;
                    color: #3F454B;
                }
                .el-button {
                    width:10px;
                    border: none !important;
                    margin: -3px 0 0 -15px !important;
                    background: transparent !important;
                }
                .el-button:hover {
                    background: transparent !important;
                }
            }
            .zd-content {
                height: 38px;
                line-height: 38px;
                color: #1D2023;
                font-size: 22px;
                margin-top: 10px;
            }
        }
        .zd-list:nth-child(n + 6) {
            margin-top: 57px;
        }
    }
    .zd-data-fore .zd-list {
        width: calc(100% / 4);
    }
    .zd-data-card .zd-list {
        width: calc(100% / 2);
    }
    /* 数据图表 */
    .el-dialog-echarts .content_left {
        background: #ffffff;
        width: 100%;
        height: 100%;
        .content_head {
            width: 100%;
            height: 55px;
            border-bottom: 1px #E8E8E8 solid;
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            .content_text {
                font-size: 16px;
                font-weight: bold;
                font-weight: bold;
                padding-left: 24px;
            }
        }
        .content_echarts {
            width: 100%;
            height: 297px;
            // border: 1px red solid;
            box-sizing: border-box;
            .echarts {
                width: 100%;
                height: 100%;
            }
        }
    }
    /* banner */
    .banner {
        width: 100%;
        display: flex;
        flex-direction: column;
        .main-content {
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 9px;
            &-title {
                color: #000000;
                font-size: 14px;
            }
        }
        .main-seat {
            width: 100%;
            height: 1px;
            background: #F4F4F4;
            margin-bottom: 35px;
        }
        .banner-top {
            display: flex;
            padding: 12px 15px 30px 15px;
            background: #ffffff;
            flex-direction: column;
            margin-bottom: 10px;
        }
        .banner-bottom {
            display: flex;
            padding: 12px 15px 30px 15px;
            background: #ffffff;
            flex-direction: column;
            min-height: 273px;
            .main-seat {
                margin-bottom: 15px;
            }
        }
        .banner-bottom-jing {
            border: none;
        }
    }
    /* 侧边导航栏 */
    .nav {
        width: 50px;
        display: flex;
        flex-direction: column;
        position: fixed;
        right: 27px;
        top: 233px;
        z-index: 999;
        cursor: pointer;
        .nav-cont {
            display: flex;
            flex-direction: column;
            width: 100%;
            transition: all .2s;
            overflow: hidden;
        }
        .nav-list {
            box-shadow:0px -1px 0px 1px rgba(244,244,244,1);
            font-size: 12px;
            color: #88909C;
            width: 50px;
            height: 50px;
            line-height: 16px;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-wrap: wrap;
            background: #ffffff;
            box-sizing: border-box;
            padding: 0 7px;
            .nav-width {
                width: 25px;
                line-height: 17px;
            }
        }
        .nav-list-cursor {
            background: #20A0FF;
            color: #ffffff;
        }
        .nav-foot {
            box-shadow:0px -1px 0px 1px rgba(244,244,244,1);
            font-size: 12px;
            color: #88909C;
            width: 50px;
            height: 25px;
            line-height: 16px;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-wrap: wrap;
            background: #ffffff;
            box-sizing: border-box;
            border-bottom: 1px #F4F4F4 solid;
            .el-icon-hand-xiangshang, .el-icon-hand-xiangxia {
                font-size: 16px;
                color: #88909C;
            }
        }
    }
    /* 侧边导航栏 */
    .nav {
        width: 50px;
        display: flex;
        flex-direction: column;
        position: fixed;
        right: 27px;
        top: 233px;
        z-index: 999;
        cursor: pointer;
        .nav-cont {
            display: flex;
            flex-direction: column;
            width: 100%;
            transition: all .2s;
            overflow: hidden;
        }
        .nav-list {
            box-shadow:0px -1px 0px 1px rgba(244,244,244,1);
            font-size: 12px;
            color: #88909C;
            width: 50px;
            height: 50px;
            line-height: 16px;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-wrap: wrap;
            background: #ffffff;
            box-sizing: border-box;
            padding: 0 7px;
            .nav-width {
                width: 25px;
                line-height: 17px;
            }
        }
        .nav-list-cursor {
            background: rgb(65, 159, 231);
            color: #ffffff;
        }
        .nav-foot {
            box-shadow:0px -1px 0px 1px rgba(244,244,244,1);
            font-size: 12px;
            color: #88909C;
            width: 50px;
            height: 25px;
            line-height: 16px;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-wrap: wrap;
            background: #ffffff;
            box-sizing: border-box;
            border-bottom: 1px #F4F4F4 solid;
            .el-icon-hand-xiangshang, .el-icon-hand-xiangxia {
                font-size: 16px;
                color: #88909C;
            }
        }
    }
    /* 排序 */
    .sort-wrap {
        display: flex;
        align-items: center;
        cursor: pointer;
        .sort-spliter {
            width: 1px;
            height: 12px;
            background: rgba(235, 235, 235, 1);
            margin: 0 10px;
            }
            .btn-sort {
            font-size: 14px;
            line-height: 1;
            color: #ccc;
            &:hover {
                color: #20a0ff;
            }
        }
    }
    .data-table {
        ::-webkit-scrollbar {
            width: 6px;
            height: 6px;
        }
        // 操作按钮
        .option-btn-group {
            .el-button {
                margin-left: 0;
                margin-right: 10px;
                padding-top: 10px;
                padding-bottom: 10px;
            }
        }
    }
</style>
